package com.hengpeng.itfints.service.borrowInfo;

import java.util.List;

import com.hengpeng.common.exception.ServiceResult;
import com.hengpeng.itfinbase.en.BorrowStatus;
import com.hengpeng.itfinbase.persist.BorrowInfo;
import com.hengpeng.itfints.controller.borrowInfo.vo.BorrowInfoVo;

public interface BorrowInfoService {
    /**
     * <pre>
     * 标的列表分页查询
     * </pre>
     * 
     * @param status
     * @return
     */
    public Long queryCount(BorrowStatus[] status);

    /**
     * <pre>
     * 标的记录条数
     * </pre>
     * 
     * @param status
     * @param borrowUserId
     * @return
     */
    public ServiceResult<List<BorrowInfo>> queryList(BorrowStatus[] status, Long borrowUserId, Integer curPage,
            Integer pageSize, String zt, String qx, String sy, String gm, String area, String guran);

    /**
     * <pre>
     * 投标记录条数
     * </pre>
     * 
     * @param borrowId
     * @param pageIndex
     * @param pageSize
     * @return
     */
    public Long queryInvestCount(Long borrowId);

    /**
     * <pre>
     * 获取标的
     * </pre>
     * 
     * @param id
     * @param status
     * @return
     */
    public BorrowInfo getBorrowInfo(Long id, BorrowStatus status);

    /**
     * <pre>
     * 获取指定人员的融资记录
     * </pre>
     * 
     * @param status
     * @param borrowUserId
     * @return
     */
    public List<BorrowInfoVo> queryMyList(BorrowStatus status, Long borrowUserId);
}
